1.2.7.4. alpha.security.MmapWriteExec (C)
Warn on mmap() calls that are both writable and executable.
Examples:
void test(int n) { void *c = mmap(NULL, 32, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); // warn: Both PROT_WRITE and PROT_EXEC flags are set. This can lead to // exploitable memory regions, which could be overwritten with malicious // code }